//
//  aboutMeViewController.m
//  Estate
//
//  Created by heyong on 16/6/25.
//  Copyright © 2016年 ttsx. All rights reserved.
//

#import "aboutMeViewController.h"

@interface aboutMeViewController ()

@end

@implementation aboutMeViewController

-(UIImageView *)erWeiMaImageView{
    if(!_erWeiMaImageView){
        _erWeiMaImageView=[[UIImageView alloc]init];
    }
    return _erWeiMaImageView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"关于我们";
    [self.view addSubview: self.erWeiMaImageView];
    WEAKSELF
    [self.erWeiMaImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(weakSelf.view.mas_centerX);
        make.centerY.mas_equalTo(weakSelf.view.mas_centerY).mas_offset(-100*BIZ);
        make.width.mas_offset(200*BIZ);
        make.height.mas_offset(200*BIZ);
    }];
    self.erWeiMaImageView.image=[UIImage imageNamed:@"downerweima"];
    self.view.backgroundColor=[UIColor whiteColor];
    
    
    UILabel *lab_s=[[UILabel alloc]init];
    lab_s.text=@"“扫一扫”下载官方APP";
    lab_s.textAlignment=1;
    lab_s.font=[UIFont systemFontOfSize:14*BIZ];
    [self.view addSubview:lab_s];
    [lab_s mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(weakSelf.view.mas_centerX);
        make.top.mas_equalTo(weakSelf.erWeiMaImageView.mas_bottom).mas_offset(5*BIZ);
        make.width.offset(300*BIZ);
        make.height.offset(30*BIZ);
    }];
    
    
    NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
    // app版本
    NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
    // app build版本
//    NSString *app_build = [infoDictionary objectForKey:@"CFBundleVersion"];
    
    UILabel *lab=[[UILabel alloc]init];
    lab.text=[NSString stringWithFormat:@"版本号: %@",app_Version];
    lab.textAlignment=1;
    lab.font=[UIFont systemFontOfSize:14*BIZ];
    [self.view addSubview:lab];
    [lab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(weakSelf.view.mas_centerX);
        make.top.mas_equalTo(lab_s.mas_bottom).mas_offset(5*BIZ);
        make.width.offset(100*BIZ);
        make.height.offset(30*BIZ);
    }];
    
    UILabel *lab_2=[[UILabel alloc]init];
    lab_2.text=[NSString stringWithFormat:@"\t智慧监理平台是一个供工程人员使用的便捷操作平台，能够实现监理人员和施工人员以及其他相关人员对于日常工作的管理，大大提高了人工操作和人工分配的效率，是一个便捷，高效，优质的管理平台！"];
    lab_2.numberOfLines=0;
    lab_2.font=[UIFont systemFontOfSize:14*BIZ];
    [self.view addSubview:lab_2];
    [lab_2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(lab.mas_bottom).mas_offset(-110*BIZ);
        make.left.mas_offset(10*BIZ);
        make.right.mas_offset(-10*BIZ);
        make.bottom.mas_equalTo(weakSelf.view.mas_bottom).offset(-30*BIZ);
    }];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
